package com.example.mydataapplication;


import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import java.util.List;

@Dao
public interface RoomDao {
    @Insert
    void insert(User user);
    @Query("select * from users")
    List<User> getAll();
    @Query("select * from users where age<:age")
    List<User> getAllByAge(int age);
}
